﻿<local:SessionListEntityViewBase
    x:Class="Conference.UX.WinRT.Views.SessionListEntityView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Conference.UX.WinRT.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:tcl="using:TeaLightV5.Foundation.UX.WinRT.Controls"
    mc:Ignorable="d">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <tcl:StackPanel Grid.Row="0" Grid.Column="0" >
            <TextBlock Text="SessionListEntity" />
        </tcl:StackPanel>
        <ListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Data}" HorizontalContentAlignment="Stretch" >
            <ListBox.ItemTemplate>
                <DataTemplate >
                    <tcl:StackPanel TapCommand="{Binding ReadCommand}" >
                        <tcl:StackPanel DataContext="{Binding Data}" >
                            <TextBlock Text="{Binding Name, Mode=TwoWay}" />
                        </tcl:StackPanel>
                    </tcl:StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <tcl:StackPanel Grid.Row="2" Grid.Column="0" >
            <Button Command="{Binding AddCommand}" >
                <TextBlock Text="Add" />
            </Button>
            <Button Command="{Binding RefreshCommand}" >
                <TextBlock Text="Refresh" />
            </Button>
        </tcl:StackPanel>
    </Grid>

</local:SessionListEntityViewBase>
